# $Id: PKGBUILD 67386 2012-03-10 21:21:31Z lcarlier $
# Maintainer: Ray Rashif <schiv@archlinux.org>
# Contributor: Corrado Primier <bardo@aur.archlinux.org>

pkgname=wavegain
_realname=WaveGain
pkgver=1.3.1
pkgrel=1
pkgdesc="A command line tool to normalize sound files"
arch=('i686' 'x86_64')
url="http://rarewares.org/others.php"
license=('LGPL')
depends=('libsndfile')
source=(http://www.rarewares.org/files/others/$pkgname-${pkgver}srcs.zip)
md5sums=('456106bae00cec2ec4024da992bc5fd0')

build() {
  cd "$srcdir/$_realname-$pkgver"

  #make -f Makefile.linux
  gcc ${LDFLAGS} ${CFLAGS} *.c -o wavegain -DHAVE_CONFIG_H -lm

}

package() {
  cd "$srcdir/$_realname-$pkgver"

  install -Dm755 "$srcdir/$_realname-$pkgver/wavegain" \
    "$pkgdir/usr/bin/wavegain"
}

# vim:set ts=2 sw=2 et:
